Skip to content

fix(rulesets): drop ksail benchmark-data deletion ruleset#73

Merged
botantler-1[bot] merged 1 commit into
mainfrom
chore/remove-ksail-benchmark-data-ruleset
Jun 27, 2026
Merged

fix(rulesets): drop ksail benchmark-data deletion ruleset#73
botantler-1[bot] merged 1 commit into
mainfrom
chore/remove-ksail-benchmark-data-ruleset

Conversation

@devantler

Copy link
Copy Markdown
Contributor

Why

deploy/repository-rulesets/restrict-deletions-on-ksail.yaml declares ksail's "Restrict deletions" ruleset (scoped to refs/heads/benchmark-data) as an Observe-only Crossplane managed resource.

ksail is removing its entire benchmark subsystem (devantler-tech/ksail#5503). As part of that, the benchmark-data branch and its GitHub ruleset (id 14699634) have been deleted. Because the managed resource is managementPolicies: ["Observe"], Crossplane cannot recreate the external ruleset — it just keeps observing a missing resource and reconciling in error:

RepositoryRuleset  github-config/ksail-restrict-deletions  warning: external resource does not exist

What changed

Remove the declarative source so Flux prunes the orphaned managed resource and the warnings stop:

  • 🗑️ delete deploy/repository-rulesets/restrict-deletions-on-ksail.yaml
  • ✂️ drop it from deploy/repository-rulesets/kustomization.yaml
  • 📝 update the tables in deploy/repository-rulesets/README.md and deploy/organization-rulesets/README.md

Not affected

  • The org-wide "Restrict deletions" OrganizationRuleset — it never targeted benchmark-data (verified: gh api repos/devantler-tech/ksail/rules/branches/benchmark-data returned only ruleset 14699634).
  • require-merge-queue-on-platform.yaml — the only remaining repository ruleset.

Validation

kustomize build deploy/repository-rulesets and kustomize build deploy both succeed; no dangling references to the removed manifest remain.

🤖 Generated with Claude Code

The ksail "Restrict deletions" ruleset (scoped to refs/heads/benchmark-data)
was adopted here Observe-only. ksail is removing its benchmark subsystem
(devantler-tech/ksail#5503), and the benchmark-data branch plus its GitHub
ruleset (id 14699634) have now been deleted. Because the managed resource is
Observe-only it cannot recreate the external ruleset, so it reconciles in
error ("external resource does not exist").

Remove the declarative source so Flux prunes the orphaned RepositoryRuleset:
- delete deploy/repository-rulesets/restrict-deletions-on-ksail.yaml
- drop it from the repository-rulesets kustomization
- update both rulesets READMEs

The org-wide "Restrict deletions" ruleset is unaffected (it never targeted
benchmark-data).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@botantler-1 botantler-1 Bot enabled auto-merge (squash) June 27, 2026 19:06
@botantler-1 botantler-1 Bot merged commit 12803dc into main Jun 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant